package com.j2203.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderInfo {
//  `id` int(11) NOT NULL AUTO_INCREMENT,
//  `oid` varchar(255) NOT NULL,
//  `gid` int(11) DEFAULT NULL,
//  `number` int(11) DEFAULT NULL,
//  `price` double DEFAULT NULL,
    private int id;
    private Long oid;
    private int gid;
    private int number;
    private double price;

    public OrderInfo(Long oid, int gid, int number, double price) {
        this.oid = oid;
        this.gid = gid;
        this.number = number;
        this.price = price;
    }
}
